﻿using L.EntityFramework;
using System;
using System.ComponentModel.DataAnnotations.Schema;

namespace L.EntityModel
{
    [Table("v_user")]
    public class V_User : BaseEntity
    {
        /// <summary>
        /// ID
        /// 默认值：0
        /// </summary>
        public int ID { get; set; }

        /// <summary>
        /// EnterpriseId
        /// </summary>
        public int EnterpriseId { get; set; }

        /// <summary>
        /// RealName
        /// </summary>
        public string RealName { get; set; }

        /// <summary>
        /// LoginName
        /// </summary>
        public string LoginName { get; set; }

        /// <summary>
        /// Modile
        /// </summary>
        public string Modile { get; set; }

        /// <summary>
        /// EnterpriseName
        /// </summary>
        public string EnterpriseName { get; set; }

        /// <summary>
        /// 1 企业 2普通用户
        /// 默认值：0
        /// </summary>
        public int Distributor { get; set; }

        public int HeadId { get; set; }

        public string UserImg { get; set; }

        public string Img { get; set; }

        public string Code { get; set; }

        public int AdminRoleID { get; set; }


    }

    /// <summary>
    /// 小程序专用
    /// </summary>
    [Table("v_user")]
    public class V_User2 : BaseEntity
    {
        /// <summary>
        /// ID
        /// 默认值：0
        /// </summary>
        public int ID { get; set; }

        /// <summary>
        /// EnterpriseId
        /// </summary>
        public int EnterpriseId { get; set; }

        /// <summary>
        /// RealName
        /// </summary>
        public string RealName { get; set; }

        /// <summary>
        /// LoginName
        /// </summary>
        public string LoginName { get; set; }

        /// <summary>
        /// Modile
        /// </summary>
        public string Modile { get; set; }

        /// <summary>
        /// EnterpriseName
        /// </summary>
        public string EnterpriseName { get; set; }

        public int HeadId { get; set; }

        public string UserImg { get; set; }

        public string Code { get; set; }

        public int Distributor { get; set; }
        /// <summary>
        /// 微信OpenId
        /// </summary>
        public string WXID { get; set; }

        public string Pwd { get; set; }

        public DateTime EndTime { get; set; }

        public int Type { get; set; }

        public string roleNames { get; set; }
    }
}